package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.Apply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ApplyMapper;
import com.ruoyi.system.service.IApplyService;

/**
 * 印章申请审核制作Service业务层处理
 * 
 * @author ess
 * @date 2021-10-18
 */
@Service
public class ApplyServiceImpl implements IApplyService 
{
    @Autowired
    private ApplyMapper applyMapper;

    /**
     * 查询印章申请审核制作
     * 
     * @param applyId 印章申请审核制作主键
     * @return 印章申请审核制作
     */
    @Override
    public Apply selectApplyByApplyId(String applyId)
    {
        return applyMapper.selectApplyByApplyId(applyId);
    }

    /**
     * 查询印章申请审核制作列表
     * 
     * @param apply 印章申请审核制作
     * @return 印章申请审核制作
     */
    @Override
    public List<Apply> selectApplyList(Apply apply)
    {
        return applyMapper.selectApplyList(apply);
    }

    /**
     * 新增印章申请审核制作
     * 
     * @param apply 印章申请审核制作
     * @return 结果
     */
    @Override
    public int insertApply(Apply apply)
    {
        return applyMapper.insertApply(apply);
    }

    /**
     * 修改印章申请审核制作
     * 
     * @param apply 印章申请审核制作
     * @return 结果
     */
    @Override
    public int updateApply(Apply apply)
    {
        return applyMapper.updateApply(apply);
    }

    /**
     * 批量删除印章申请审核制作
     * 
     * @param applyIds 需要删除的印章申请审核制作主键
     * @return 结果
     */
    @Override
    public int deleteApplyByApplyIds(String[] applyIds)
    {
        return applyMapper.deleteApplyByApplyIds(applyIds);
    }

    /**
     * 删除印章申请审核制作信息
     * 
     * @param applyId 印章申请审核制作主键
     * @return 结果
     */
    @Override
    public int deleteApplyByApplyId(String applyId)
    {
        return applyMapper.deleteApplyByApplyId(applyId);
    }
}
